//
//  ScheduleInquiryBottomView.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/31.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "ScheduleInquiryBottomView.h"

@implementation ScheduleInquiryBottomView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.amLab.userInteractionEnabled = YES;
    self.pmLab.userInteractionEnabled = YES;
    
    WEAKSELF
    [self.amLab addGestureTapEventHandle:^(id  _Nonnull sender, UITapGestureRecognizer * _Nonnull gestureRecognizer) {
        if (weakSelf.ScheduleInquiryBottomBlock) {
            weakSelf.ScheduleInquiryBottomBlock(ScheduleInquiryBottomActionType_am);
        }
    }];
    
    [self.pmLab addGestureTapEventHandle:^(id  _Nonnull sender, UITapGestureRecognizer * _Nonnull gestureRecognizer) {
        if (weakSelf.ScheduleInquiryBottomBlock) {
            weakSelf.ScheduleInquiryBottomBlock(ScheduleInquiryBottomActionType_pm);
        }
    }];
}

@end
